package com.ssoclient.filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
 * @author panyuanxin
 * @date 2021年06月21日 11:31
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
  @Override
  public void addInterceptors(InterceptorRegistry registry) {
    System.out.println("registry = " + registry);
    registry.addInterceptor(new WebFilter()).addPathPatterns("/**");
  }
}
